import  http from '@/utils/http';

export async function languageModelUpdate(params) {
  return http.post('/llm/use/edit',params);
}

export async function modelTemplateList(params) {
  return http.get('/llm/template/list',params);
}

export async function languageModelInfo(params) {
  return http.get('/llm/use/one',params);
}

export async function languageModelChange(params) {
  return http.post('/llm/robot/edit',params);
}
export async function languageModelTest(params) {
  return http.get('/llm/use/test',params);
}
export async function languageModelUsing(params) {
  return http.get('/llm/robot/list',params);
}
export async function languageModelList(params) {
  return http.get('/llm/use/list',params);
}
export async function languageModelTestMore(params) {
  return http.post('/llm/use/test',params);
}
export async function languageModelCurrent(params) {
  return http.get('/llm/robot/one',params);
}
export async function languageModelRemove(params) {
  return http.get('/llm/use/delete',params);
}

export async function updateLanguageModelSort(params) {
  return http.get('/llm/use/updateLlmSort',params);
}

export async function modelListTenant(params) {
  return http.get('/sys/tenant/add/llm',params);
}

export async function updateModelListTenant(params) {
  return http.get('/sys/tenant/edit/llm',params);
}
export async function getLanguageDisabled(params) {
  return http.get('/llm/admin/disabled', params)
}

export async function getRobotUseList(params) {
  return http.get('/llm/robot/useList',params);
}
export async function getRobotModelList(params) {
  return http.get('/llm/robot/modelList', params)
}
export async function postRobotAdd(params) {
  return http.post('/llm/robot/add',params);
}
export async function getRobotRemove(params) {
  return http.get('/llm/robot/remove',params);
}

export async function getTenantBaseInfo(params) {
  return http.get('/sys/tenant/baseInfo',params);
}

export async function setTenantDefaultModel(params) {
  return http.get('/sys/tenant/setDefaultModel',params);
}